package com.ll.blog.model.res;

import com.ll.blog.contant.ArticleStatusEnum;
import com.ll.blog.contant.OrderEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class ArticleDetailRes implements Serializable {
    private Integer id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "标签")
    private List tags;

    @ApiModelProperty(value = "文章内容")
    private String content;

    @ApiModelProperty(value = "字数")
    private String words;


    @ApiModelProperty(value = "预期阅读时间")
    private String readTime;

    @ApiModelProperty(value = "发布状态（0 未发布 1 已发布 , 2 已删除）默认为1")
    private ArticleStatusEnum status;

    @ApiModelProperty(value = "简介")
    private String about;

    @ApiModelProperty(value = "分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否置顶")
    private OrderEnum isTop;
}
